# Makefile.in
# $Id: Makefile.in,v 1.2 1999-07-12 08:48:10 arensb Exp $

PACKAGE =	@PACKAGE@
VERSION =	@VERSION@

subdir =	doc
srcdir =	@srcdir@
top_srcdir =	@top_srcdir@
curdir =	${top_srcdir}/${subdir}

DISTDIR =	${top_srcdir}/${PACKAGE}-${VERSION}

INFOFILES =	libpalm.info \
		pdb.info
DVIFILES =	libpalm.dvi \
		pdb.dvi
PSFILES =	libpalm.ps \
		pdb.ps

DISTFILES =	Makefile.in \
		libpalm.texi \
		libpalm.ps \
		pdb.texi \
		pdb.ps \
		version.texi.in \
		texinfo.tex \
		coldsync.8 \
		${PSFILES}

CLEAN =		${INFOFILES} ${DVIFILES} ${PSFILES} \
		*.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.ty *.vr \
		*.bak *~ errs errs.*
DISTCLEAN =	Makefile version.texi .depend
SPOTLESS =

.SUFFIXES:	.dvi .info .ps .texi

.texi.info:
	makeinfo $<

.texi.dvi:
	texi2dvi $<

.dvi.ps:
	dvips -f $< >$@

all:	${INFOFILES}
all-doc:	info dvi ps
info:	${INFOFILES}
dvi:	${DVIFILES}
ps:	${PSFILES}

depend:		# XXX

distdir:	${DISTFILES}
	if test ! -d ${DISTDIR}/${subdir}; then \
		mkdir ${DISTDIR}/${subdir}; \
	fi
	cp -p ${DISTFILES} ${DISTDIR}/${subdir}

clean:
	-rm -f ${CLEAN}
distclean:
	-rm -f ${CLEAN} ${DISTCLEAN}
spotless:
	-rm -f ${CLEAN} ${DISTCLEAN} ${SPOTLESS}
